//
//  UITableView+Extesion.swift
//  Teamo
//
//  Created by mdzz on 2021/12/14.
//

import Foundation
import UIKit

public extension UITableView {
    
    /// Scroll to bottom
    /// - Parameter animated: perform animation
    func scrollToBottom(animated: Bool = true) {
        var off = self.contentOffset
        off.y = self.contentSize.height - self.bounds.size.height+self.contentInset.bottom
        self.setContentOffset(off, animated: animated)
    }
}
